package com.jltx.zeus.arch

/**
 * @author aidenquan
 *         Created by junlintianxia on 2022/07/18.
 */
object CallBackManager {
    private val callbackList: MutableList<ICallback?> by lazy {
        ArrayList<ICallback?>()
    }

    fun addCallBack(callback: ICallback) {
        if (!callbackList.contains(callback)) {
            callbackList.add(callback)
        }
    }

    fun removeCallBack(callback: ICallback) {
        callbackList.remove(callback)
    }
}